package com.gzsxy.esjy.sign;

/**
 * @author zhangxiaolong
 * @since 2022/7/15
 */
public class SignConstant {

    /*
     *                投屏版本协议&状态码
     */

    public final static String SCREEN = "screen";
    public final static String ANDROID = "android";

    /**
     * 签名命令
     */
    public static final String SIGN_CMD = "sign";

    public static final String GET_DEVICE_STATUS = "getDeviceStatus";

    /**
     * 取消签名
     */
    public static final String CANCEL_SIGN_CMD = "cancelSign";

    /**
     * 找不到通道返回码
     */
    public static final int NOT_FOUND_CHANNEL = 26;

    /**
     * 签字板取消签名返回码
     */
    public static final int DEVICE_CANCEL_CODE = 34;
    /**
     * 前端取消签名返回码
     */
    public static final int REMOTE_CANCEL_CODE = 38;
    /**
     * 设备繁忙返回码
     */
    public static final int DEVICE_BUSY_CODE = 36;

    /**
     * 设备空闲，在没有签名，发送取消签名会出现这个
     */
    public static final int DEVICE_IDLE = 35;

    /**
     * 找不到设备返回码
     */
    public static final int DEVICE_NOT_FOUND_CODE = 22;
    /**
     * 设备断开被拔掉返回码
     */
    public static final int DEVICE_DISCONNECT_CODE = 45;

    /**
     * 文件没找到
     */
    public static final int FILE_NOT_FOUND_CODE = 46;

    /**
     * 设备忙碌
     */
    public static final int DEVICE_BUSY = 1;

    /*
     *                安卓版本协议cmd
     */

    /**
     * 签名
     */
    public static final String P_SIGN = "p_sign";

    /**
     * 提交签名回复
     */
    public static final String P_SIGNOK = "p_signok";
    /**
     * 设备忙碌
     */
    public static final String P_SIGNBUSY = "p_signbusy";

    /**
     * 取消签名
     */
    public static final String P_SIGNCANCEL = "p_signcancel";

    /**
     * 开始签名
     */
    public static final String P_STARTSIGN = "p_startsign";

}
